package com.zbhk.qc.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController("TestController")
@RequestMapping(value = "/test")
@RequiredArgsConstructor
@Api(tags = "测试")
public class TestController {

    @ApiModelProperty()
    @GetMapping("/test")
    public String test2(@ApiParam(value = "名字") @RequestParam(required = false) String name, HttpServletRequest request){
        return  "成功" + name + " ";
    }

}
